package com.systop.asset.mapper;

import com.systop.asset.entity.MaterialTransfer;
import com.systop.asset.entity.MaterialTransferDetail;
import com.systop.asset.entity.vo.MaterialTransferDetailVo;
import com.systop.asset.entity.vo.MaterialTransferVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MaterialTransferMapper {
    int insertMaterialTransfer(MaterialTransfer materialTransfer);

    int insertMaterialTransferDetail(MaterialTransferDetail materialTransferDetail);

    MaterialTransferVo selectTransferList(@Param("page") Integer page, @Param("pageSize") Integer pageSize, @Param("orderNo") String orderNo);

    MaterialTransferDetailVo selectTransferDetail(@Param("id") int id);

    int updateMaterialInventoryAdd(@Param("wId") Long wId, @Param("mId") Long mId, @Param("count") int count);

    int updateMaterialInventorySub(@Param("wId") Long wId, @Param("mId") Long mId, @Param("count") int count);

    int updateMaterialTransferStatus(int mtId, int status);

}
